package com.chennan.spring.demo.annotation.lazy;

import com.chennan.spring.demo.annotation.componentscan.ComponentScanTest;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author chennan
 * @create 2021-11
 */
public class MyTest1222 {
    public static void main(String[] args) {
        ApplicationContext app = new AnnotationConfigApplicationContext(MyLazyConfig.class);
        String[] beanDefinitionNames = app.getBeanDefinitionNames();
        for (String beanDefinitionName : beanDefinitionNames) {
            System.out.println(beanDefinitionName);
        }
    }
}
